package com.app.ytong.manager.qing;

import android.content.Context;

import com.app.ytong.basis.BasisActivity;
import com.app.ytong.bean.GoodsListBean;
import com.app.ytong.bean.GoodsTypeListBean;
import com.app.ytong.bean.RecordListBean;
import com.app.ytong.bean.SupplierListData;
import com.app.ytong.bean.TraderListData;
import com.app.ytong.bean.UserListData;
import com.tencent.bugly.crashreport.biz.UserInfoBean;
import com.vandin.weigher.sdk.connector.IWeigh;

import java.util.List;

public interface ScalePresenter {

    /**
     * 检测是否是计价员（管理员）
     * @param      no     卡号
     */
    public void isJiJiaYuan(BasisActivity mContext,String no);
    public void isJiJiaYuan(BasisActivity mContext);





    /**
     * 根据fsg茶青类型：获取货品资料
     * @param activity
     * @param tid
     */
    public void getGoodsListByTid(BasisActivity activity, String tid);

//    /**
//     * 显示货品资料
//     * @param goodsListBean
//     */
//    public void showGoodsOption(Context mContext, GoodsListBean goodsListBean);



    /**
     * 获取供应商类型
     * @param activity
     * @param code      //供应商编号
     */
    public void getSupplierInfoByCode(ScaleActivity activity,String code);

    /**
     * 获取并实例化秤
     * @param mContext
     * @return
     */
    public IWeigh getIWeigh(Context mContext);

    /**
     * 获取秤的实时重量
     * @return
     */
    public String getScaleWeight();

    /**
     * 关闭化秤
     */
    public void closeIWeigh();


    /**
     * 结算
     * @param activity
     * @param goodsListBean   要提交的数据
     *     @param curJiJiaYuan   计价员
     * @param supplierData   供应商或者茶农资料
     */
    public void settlement(BasisActivity activity, GoodsListBean goodsListBean, SupplierListData supplierData, TraderListData curJiJiaYuan, GoodsTypeListBean goodsTypeListBean);

    /**
     * 结算
     * @param activity
     * @param recordListBean  交易记录
     */
    public void editRecord(BasisActivity activity, RecordListBean recordListBean);

    /**
     * 打印
     */
    public void showRecord(BasisActivity activity,RecordListBean recordListBean);

}
